﻿using BW.MesProject.Equipment.Domain.Equipment;
using BW.MesProject.Equipment.Infrastructure.Dto.Input.DeviceLedger;
using BW.MesProject.Equipment.Infrastructure.Dto.Output.DeviceLedger;
using BW.MesProject.Public.ErrorCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.Equipment.Infrastructure.Equipment
{
    /// <summary>
    /// 设备台账服务接口层
    /// </summary>
    public interface IDeviceLedgerService
    {
        /// <summary>
        /// 获取设备类型信息
        /// </summary>
        /// <returns></returns>
        ApiResult<List<DeviceTypeModel>> GetDeviceTypeValue();

        /// <summary>
        /// 添加设备台账
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        ApiResult<int> AddDeviceLedger(AddDeviceLedgerInput input);

       /// <summary>
       /// 获取设备台账列表  
       /// </summary>
       /// <param name="input"></param>
       /// <returns></returns>
        ApiPaging<DeviceLedgerOutput> GetDeviceLedgerList(DeviceLedgerQueryInput input);

        /// <summary>
        /// 根据设备台账获取设备台账数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ApiResult<DeviceLedgerOutput> GetDeviceLedgerValue(long id);

        /// <summary>
        /// 修改设备台账
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        ApiResult<int> UpdateDeviceLedger(UpdateDeviceLedgerInput input);

        /// <summary>
        /// 删除设备台账
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ApiResult<int> DeleteDeviceLedger(long id);
    }
}
